<template>
  <div class="child2">
    <h3>子组件2</h3>
		电脑：{{ computer }}
		书本数：{{ book_num }}
  </div>
</template>

<script setup lang="ts" name="Child2">
	import {ref} from 'vue'

let computer = ref('联想')
let book_num = ref(2)

defineExpose({
	computer,
	book_num
})

</script>

<style scoped>
	.child2{
		margin-top: 20px;
		background-color: orange;
		padding: 20px;
		border-radius: 10px;
    box-shadow: 0 0 10px black;
	}
</style>
